import { Column, Model, Table } from "sequelize-typescript";
import { IWorkflowLog } from "../IWorkflowLog";

@Table
export class WorkflowLog extends Model<IWorkflowLog> {
    @Column({
        primaryKey: true,
    })
    _id: string;

    @Column
    nodeName: string;
    @Column
    userID: string;
    @Column
    convID: string;
    @Column
    runID: string;
    @Column
    workflowID: string;
    @Column
    completion_tokens: number;
    @Column
    prompt_tokens: number;
    @Column
    total_tokens: number;
    @Column
    input: string;
    @Column
    output: string;
    @Column
    time: number;
    @Column
    error: string;
    @Column
    createdAt: Date;
}